import * as qiniu from 'qiniu-js'
import request from "@/api/utils/request.js";

// const qiniu = require('qiniu-js')
// export const getAllVideos = async() => await request.get("video/getAllVideo")
//
//  // export const logout = async() => await request.post("/logout")
//
//
// // category
//
// // export const getAllVideos = async(vId) => await request.get(`tag/${vId}`)
//



export const getCommentByVideoId = async (cId) => await request.get(`comment/${cId}`)

export const addComment = async (comment) => await request.post('comment/add',comment)


export const delComment = async (cId) => await request.delete(`comment/del/${cId}`)



